package com.kuzlak.cms.module.sys.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@Schema(description = "字典")
public class DictVO {
  //  @NotNull(message = "编号不能为空")
  @Schema(description = "编号")
    private Long id;

  @Schema(description = "字典名称")

    @Size(max = 255, message = "名称长度不能超过255个字符")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "字典关键字")
    @Size(max = 255, message = "关键字长度不能超过255个字符")
    @NotEmpty(message = "关键字不能为空")

    private String isKey;

    @Schema(description = "备注")
    @Size(max = 255, message = "备注长度不能超过255个字符")
    @NotEmpty(message = "备注不能为空")
    private String remark;

    @Schema(description = "状态")
    private int status;

}
